/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ComboBoxModel;

/**
 *
 * @author Levix
 */
public class ItemGenerator {
   private static final int howItems=20;


    public String[] generateIntegerItems(){
        String [] items=new String[howItems];
        for (int index=1;index<items.length;index++)
                items[index-1]=""+index;

             return items;
    }
    public String[] generateOjectsItems(Object [] itemsList ){
        String [] items=new String[itemsList.length];
        for (int index=0;index<items.length;index++)
                items[index]=new String (itemsList[index].toString());
        
     return items;
    }
}
